package com.qf.data.system.vo.output;

import com.qf.data.system.entity.Power;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
@Accessors(chain = true)
public class PowerTreeNodeOutput implements Serializable {
    private  Long id;
    private  String label;
    private  Integer type;
    private List<PowerTreeNodeOutput> children =new ArrayList<>();

    public void addChildren(PowerTreeNodeOutput powerTreeNodeOutput){
        children.add(powerTreeNodeOutput);
    }

}
